#include "error_cg.h"

namespace venus {
bool CheckErrorCG(const char *location) {
  CGerror error_id = cgGetError();
  if (CG_NO_ERROR == error_id) return false;
  const char *error_str = cgGetErrorString(error_id);
  Error("In \"%s\": error: %u, %s", location, error_id, error_str);
  return true;
}
} // namespace venus
